package com.cy.ppj.model.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @description: 代扣申请日志
 * @author: Ocean
 * @create: 2018-07-30 10:06
 **/
@Data
@Document(collection = "withhold_log")
@CompoundIndexes({
        @CompoundIndex(name = "idx_time", def = "{'createTime': -1}")
})
public class WithholdLog {

    @Id
    private String id;

    private Long orderId;

    @Indexed(unique = true)
    private String orderNo;

    @Indexed(unique = true)
    private Long withholdRecordId;

    private String requestData;

    private String responseData;

    private Date createTime;

    private Date updateTime;

}
